package com.tiancheng.trade.order.vo.admin;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

/**
 * @Auther: liudong
 * @Date: 2024/4/2 13:41
 * @Param ${tags}
 * @Description:
 */
@Setter
@Getter
@ToString
public class QueryRefundVO {
    /**
     * 退款id
     */
    private String refundId;
    /**
     * 退款单号
     */
    private String paymentId;
    /**
     * 退款流水号
     */
    private String flowId;

    /**
     * 对应的支付流水号
     */
    private String payFlowId;
    /**
     * 主订单号
     */
    private String orderId;
    /**
     * 子订单号
     */
    private String subOrderId;
    /**
     * 业务渠道来源
     */
    private String orderSource;
    /**
     * 商户编码
     */
    private String merchantCode;
    /**
     * 商户名称
     */
    private String merchantName;
    private String refundStatus;

    private String refundTimeBegin;
    private String refundTimeEnd;

    private String createTimeBegin;
    private String createTimeEnd;

    private Integer currentPage;

    private Integer pageSize;

    public String getRefundId() {
        if (StringUtils.isNotEmpty(refundId)) {
            refundId = refundId.trim();
        }
        return refundId;
    }

    public String getPaymentId() {
        if (StringUtils.isNotEmpty(paymentId)) {
            paymentId = paymentId.trim();
        }
        return paymentId;
    }

    public String getFlowId() {
        if (StringUtils.isNotEmpty(flowId)) {
            flowId = flowId.trim();
        }
        return flowId;
    }

    public String getPayFlowId() {
        if (StringUtils.isNotEmpty(payFlowId)) {
            payFlowId = payFlowId.trim();
        }
        return payFlowId;
    }

    public String getOrderId() {
        if (StringUtils.isNotEmpty(orderId)) {
            orderId = orderId.trim();
        }
        return orderId;
    }

    public String getSubOrderId() {
        if (StringUtils.isNotEmpty(subOrderId)) {
            subOrderId = subOrderId.trim();
        }
        return subOrderId;
    }

    public String getMerchantName() {
        if (StringUtils.isNotEmpty(merchantName)) {
            merchantName = merchantName.trim();
        }
        return merchantName;
    }
}
